DBE Color

hello,

is there a method for color the text contains in the DBE text, string, choice, ect.. in a form???

thanks
Coffy - Tue Feb 28 05:13:39 EST 2012

Re: DBE Color
PatrickGuay - Wed Feb 29 08:29:57 EST 2012

You can color the text of a rich text box, however, you will need to know the markup that goes with this and this is an area of DXL that may be a awkward if you have never dipped in it before.

Try something like the following:
const string RTF_OPEN_DISCUSSION_INT = "{\\b\\*cf3* Open Discussions (Internal)}}\n\n\n"

Buffer buf = create()
string sFontTable = "{\\rtf1{\\colortbl;\\red255\\green0\\blue0;\\red237\\green110\\blue25;\\red0\\green0\\blue255;}"

buffer = sFontTable RTF_OPEN_DISCUSSION_INT

useRTFColour(textbox_dbe, true)
set(textbox_dbe, tempStringOf buffer)

\\*cf3* will trigger the secondidentified color in sFontTable which if you know your RGB colors ends up being blue.

Why is this sooo complicated? As Louie once stated "because the sky is \\cf3" ;)